package nl.infodation.emr.pricingservice.rulegeneration;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.resource.XtextResource;
import org.eclipse.xtext.resource.XtextResourceFactory;

import com.google.inject.Inject;
import com.google.inject.Provider;

public class MyXtextResourceFactory extends XtextResourceFactory {

		@Inject
		public MyXtextResourceFactory(Provider<XtextResource> resourceProvider) {
			super(resourceProvider);
		}

		@Override
		public Resource createResource(URI uri) {
			return new XtextResource(uri);
		}

		public Class<? extends XtextResourceFactory> bindIResourceFactory() {
			return MyXtextResourceFactory.class;
		}
}
